var PAGE_SWITCH_TIME = 300;
+var APP_ICON_SCALE_IN_TIME = 500;
+var APP_ICON_SCALE_IN_DELAY = 700;
+
const SWITCHEROO_BUS_NAME = 'net.hadess.SwitcherooControl';
const SWITCHEROO_OBJECT_PATH = '/net/hadess/SwitcherooControl';
}
_refilterApps() {
+ let filteredApps = this._allItems.filter(icon => !icon.actor.visible);
+
this._allItems.forEach(icon => {
if (icon instanceof AppIcon)
icon.actor.visible = true;
appIcon.actor.visible = false;
});
});
+
+ // Scale in app icons that weren't visible, but now are
+ filteredApps.filter(icon => icon.actor.visible).forEach(icon => {
+ if (icon instanceof AppIcon)
+ icon.scaleIn();
+ });
}
getAppInfos() {
this.name = app.get_name();
this.actor = new St.Button({ style_class: 'app-well-app',
+ pivot_point: new Clutter.Point({ x: 0.5, y: 0.5 }),
reactive: true,
button_mask: St.ButtonMask.ONE | St.ButtonMask.TWO,
can_focus: true,
this.icon.animateZoomOut();
}
+ scaleIn() {
+ this.actor.scale_x = 0;
+ this.actor.scale_y = 0;
+
+ this.actor.ease({
+ scale_x: 1,
+ scale_y: 1,
+ time: APP_ICON_SCALE_IN_TIME,
+ delay: APP_ICON_SCALE_IN_DELAY,
+ mode: Clutter.AnimationMode.EASE_OUT_QUINT
+ });
+ }
+
shellWorkspaceLaunch(params) {
params = Params.parse(params, { workspace: -1,
timestamp: 0 });